package dao;

import java.util.List;

import vo.Topic;

public interface TopicDAO extends GenericDao<Topic, Long> {

	public List<Topic> findAll();

	public long findCount();

	public long findCountByName(String name);

	public long findCountByExpireDttm(String expireDttm);

	public long findCountByNameAndExpireDttm(String name, String expireDttm);

	public List<Topic> findAll(int start, int pageSize);

	public List<Topic> findByName(int start, int pageSize, String name);

	public List<Topic> findByExpireDttm(int start, int pageSize, String expireDttm);

	public List<Topic> findByNameAndExpireDttm(int start, int pageSize, String name, String expireDttm);

	public Topic getById(long id);

	public void update(long id);

	public void delete(long id);// 不是真是删除

}
